package com.gkwave.action.service;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gkwave.module.bean.CityBean;
import com.gkwave.module.dao.CityDAO;


/**
 * @author drengasa
 *
 */
public class TransportRegisterService extends BaseService {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public TransportRegisterService() {
        super();
        // TODO Auto-generated constructor stub
    }
	@Override
	public void procesRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		PrintWriter out = response.getWriter();
		CityDAO o = new CityDAO();
		try {
			xmlResponse = new CityBean().marsel(o.getAllCity());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(xmlResponse);
		out.println(xmlResponse);
	}

}
